package com.itheima.devops.selfAnno;

import com.alibaba.fastjson.JSON;
import com.itheima.autoCode.service.strategy.CodeStyleStrategyRegistratar;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(tags = "翻译模块")
public class HelloController2 {
    @Autowired CodeStyleStrategyRegistratar styleStrategyRegistratar;

    @ApiOperation("翻译接口")
    @GetMapping("/translate")
    public User test(){
        User user = new User();
        user.setName("zhangsan");
        user.setSex("male");
        log.info("user:{}", JSON.toJSONString(user));
        return user;
    }



}
